gtk/icon-theme: Handle lack of SVG loader gracefully
authorJonas Ådahl <jadahl@gmail.com>
Wed, 7 Aug 2019 17:20:46 +0000 (19:20 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 8 Aug 2019 07:05:30 +0000 (09:05 +0200)
commit048957cd496ea86d1a8c1bcee376dcb421de5ff1
tree0561df1575624ed48f0bd33606f68993385e3189
parent434d32bf9564aff1fbf5ab67834a362a1263b173
gtk/icon-theme: Handle lack of SVG loader gracefully

When loading a SVG icon from a gresource file only containing SVG icons,
but without having a SVG loader available in gdk-pixbuf, we would crash
when trying to eventually load the resource. Fix this by gracefully
handling this by simply failing to load the icon, while the first time
it happens, log a warning.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2084
gtk/gtkicontheme.c